package com.pz.controller;

import com.pz.service.CommentCombinationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

/**
 * @author：PZ
 * @Date: 2020/11/5 14 34
 */

@Controller
public class CommentCombinationController {

    @Autowired
    CommentCombinationService commentCombinationService;

    @GetMapping(value = "/commentCombinaiton")
    public String findCommentCombinationByPage(@RequestParam Map<String, Object> map, Model m) {
        m.addAttribute("comments", commentCombinationService.findCommentByPage(map));
        return "/admin/comments::table_refresh";
    }
}
